package com.qf.service.impl;


import com.qf.dao.AccountDao;
import com.qf.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

/**
 * @Description: 公用常量
 * @Data: 2022/8/30 10:11
 * @Pacakge: com.qf.service.impl
 * @ClassName: AccountServiceImpl
 * @Author: fan
 */
@Service
public class AccountServiceImpl implements AccountService {
    @Override
    public void addAccount() {
        ApplicationContext applicationContext
                = new ClassPathXmlApplicationContext("bean.xml");
        AccountDao accountDao = (AccountDao) applicationContext.getBean("accountDaoImpl");
        accountDao.addAccount();
    }
}
